package com.raodjava.demo2;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class UserInfo1 {

    @Getter(value = AccessLevel.PUBLIC)
    private Long id;

    @Setter(value = AccessLevel.PRIVATE)
    private String name;

    @Getter(value = AccessLevel.NONE)
    @Setter(value = AccessLevel.NONE)
    private String phone;

    public String getName() {
        return "自定义" + name;
    }
}